x86/pv: Remove unsafe bits from the mod_l?_entry() fastpath
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Jul 2016 13:32:03 +0000 (14:32 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 26 Jul 2016 13:06:59 +0000 (14:06 +0100)
commite1bff4c2ea3b32464510ac00c320bba28a8dbcca
treebdfd9d6e50415205c833ddcb53d20897f7687342
parentd5438accceecc8172db2d37d98b695eb8bc43afc
x86/pv: Remove unsafe bits from the mod_l?_entry() fastpath

All changes in writeability and cacheability must go through full
re-validation.

Rework the logic as a whitelist, to make it clearer to follow.

This is XSA-182

Reported-by: Jérémie Boutoille <jboutoille@ext.quarkslab.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm.c
xen/include/asm-x86/page.h